<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>实名签署合同</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin.css" media="all">
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">

        <div class="layui-col-md4">
            <div class="layui-card">
                <div class="layui-card-header">你还没有实名认证，请选择是个人还是企业? </div>
            </div>

        <div class="layui-card">
            <div class="layui-card-header">企业实名签署流程 <button class="layui-btn layuiadmin-btn-list" onclick="cVerify()" id="c_todo">操作</button></div>
        </div>

         <div class="layui-card">
             <div class="layui-card-header">个人实名签署流程 <button class="layui-btn layuiadmin-btn-list" onclick="pVerify()" id="p_todo">操作</button></div>
         </div>
        </div>

    </div>
</div>

<script src="/static/layui/layui.js"></script>
<script>
    layui.config({
        base: '../../' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'console'], function(){
        var $ = layui.$;

    });

    function cVerify() {//企业实名
        var acc='#(merch.accountType)';
        if(acc===null || acc==='') {
        }else {
            if (acc != '2' && acc=='1') {
                alert("此商户之前选择的是个人实名，请继续个人实名");
                return;
            }
        }
        //alert("暂不支持..")
        layer.confirm('确定使用企业进行实名认证?(确定后不可更改)', {icon: 3, title:'提示'}, function(index){
            window.location.href = 'cVerify';
            layer.close(index);
        });
    }

    function pVerify() {//个人实名
        var acc='#(merch.accountType)';
        if(acc===null|| acc===''){
        }else {
            if (acc != '1') {
                alert("此商户之前选择的是企业实名，请继续企业实名");
                return;
            }
        }
        layer.confirm('确定使用个人进行实名认证?(确定后将不可更改)', {icon: 3, title:'提示'}, function(index){
            window.location.href = 'pVerify';
            layer.close(index);
        });

    }
</script>


</body>
</html>

